package com.note.simpleadmin.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.ResourceBundle;

public class MimeUtil
{
	public static final String resourceFile = "mime";
	public static ResourceBundle rb = ResourceBundle.getBundle(resourceFile);

	public static String getString(String key)
	{
		return rb.getString(key);
	}
	public static String getString(String...keys)
	{
		String str = "";
		for (String key : keys)
		{
			if (StringUtils.isNotBlank(key))
			{
				String value = getString(key.toLowerCase());
				if (StringUtils.isNotBlank(value))
				{
					if (StringUtils.isNotEmpty(str))
					{
						str = str + "," + value;
					} else
					{
						str = str + value;
					}
				}

			}

		}
		return str;
	}

}
